How can I split the screen into two equal parts?

I’m currently working on a game where touch is constantly detected on either side of the screen.
How can I do that?

Get the touch position and see if it falls to left or right. Typically it will be:

if( touchPosition >  Screen.width / 2 ){
        // Left
} else {
        // Right