Or you can just make a phone call, then hold your hand on the screen - that should turn the screen black if the sensor is working. Taking your hand away should show the screen again. If that's not happening, your proximity detector is probably going (or gone).