Ayuda con script Arduino

'Before' significa antes :stuck_out_tongue:

¿Podrías poner el código completo, porfa? o súbelo a pastebin