test for sensor