I was able to get a basic function but would like to add a bit more ability would it be possible to do an if statement with a while this is what I was thinking but have not been able to get to work
if sensors.analog[2].lastReading > 65
m117 pinda to HOT cooling down
while sensors.analog[2].lastReading > 65
M106 S100
G1 Z10 F1000.0
G4 S1
M99
elif sensors.analog[2].lastReading < 62
while sensors.analog[2].lastReading < 62
G4 S1
M99)