testing the sensor