This document provides code to connect an Arduino board to PHP code running on a computer. The Arduino code receives serial input from the PHP code to control an LED, turning it on or off depending on whether a 0 or 1 is received. The PHP code uses a serial communication class to open the serial port, send the data to control the LED, then close the port.