Exicom interview question

How to find a sensor work correctly