added magnetic sensor to sketches