Sensor initial version

The code is tested only for the accelerometer event. The testing is blocked as of two days because of build issues.