Added Sensor.py

Sensor.py contains functionalities common to all sensors