upadted sensor.h