You have
10
Read ambient temperature
Read power consumption
Turn on outpu4 on I/O module to turn off heating