Fixed bug in Sensor Class for using a digital pin to take readings,
other work in the main project file.