Updated device to read accelerometer, change PWM LED to match reading