... refreshing every 3 seconds
Sensor Type Sensor Reading Timestamp
Current PHP version: 7.0.13
Success: A proper connection to MySQL was made!
Host information: akj.dk.mysql via TCP/IP
Select returned 4 rows.
ID: 1 (123456789abc) is ON (1)
ID: 2 (c123456789ab) is ON (1)
ID: 3 (bc123456789a) is OFF (0)
ID: 4 (dbc123456789) is OFF (0)

NB: Error - my if-statement translates '0' into ON and '1' into OFF... it should be opposite