This is the base class all the other sensor classes are derived from.
The classes derive from Sensor
and provide helper functions
specific to the corresponding sensor type. Each of the functions makes
sure the sensor is in the required mode and then returns the specified value.