Exicom Interview Question

How to find a sensor work correctly