Use Sensor class