// PHP code to update and record DHT11 sensor data and LEDs state in table. // PHP code to access the database.