Help will if statement

I have a temp sensor sending the temp of a aquarium every minute by mqtt, I would like to send another mqtt msg that activates a alarm when the temp falls out of a range. I’m a little familiar with code for microcontrollers.
if (tankTemp > 82) THEN publish mqtt msg.

Please provide a link with help full info.