abstract out the sensor class and add analog sensor class

Signed-off-by: Joshua Frkuska <j.frkuska@gmail.com>