You can perform simple tests like lifting the phone to your face to see if the screen lights up, or making a call and bringing the phone close to your ear to see if the screen dims. Alternatively, you can download a third-party app or use manufacturer diagnostic tools to perform a more detailed proximity sensor test.