Fix initialization of sensor_t structure

Change-Id: Iaaffcb274e633ff8cdcd40352ea770fe6f21cd9b