added side selector

pass an argument to chose on which side the sensor is attached