implemented sensor class to add noise to the sensor output