Arduino sketch to translate LED pulses to MQTT data.