Comparing two temperatures & controlling one plug

Logics tutorial if needed: