Testing the sensor