Created listener and working on sensor data