I cxan not see why you would run the fan if the air outside is the same temp as inside, so i adjusted the fan to turn off if the same or higher. this should work, untested
[{"id":"09a9b65c6cc6c858","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"inside","payload":"20","payloadType":"num","x":120,"y":1940,"wires":[["6a8d519a6e551d56"]]},{"id":"6a8d519a6e551d56","type":"join","z":"b9860b4b9de8c8da","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":270,"y":2040,"wires":[["851c940d85a6e86b","2ea4a8ffc7ad74ad"]]},{"id":"aa0b8ce19e7b3f01","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"inside","payload":"22","payloadType":"num","x":120,"y":2000,"wires":[["6a8d519a6e551d56"]]},{"id":"c381a7d5073c1195","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"outside","payload":"20","payloadType":"num","x":120,"y":2080,"wires":[["6a8d519a6e551d56"]]},{"id":"b4edebbd6f5442af","type":"inject","z":"b9860b4b9de8c8da","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"outside","payload":"22","payloadType":"num","x":120,"y":2140,"wires":[["6a8d519a6e551d56"]]},{"id":"851c940d85a6e86b","type":"switch","z":"b9860b4b9de8c8da","name":"","property":"payload.outside","propertyType":"msg","rules":[{"t":"gte","v":"payload.inside","vt":"msg"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":390,"y":2040,"wires":[["f4847decde0f8f0e"],["c3c8777c126f158c"]]},{"id":"2ea4a8ffc7ad74ad","type":"debug","z":"b9860b4b9de8c8da","name":"debug 292","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":730,"y":1920,"wires":[]},{"id":"f4847decde0f8f0e","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":2080,"wires":[["b4445566cf98afe6"]]},{"id":"c3c8777c126f158c","type":"switch","z":"b9860b4b9de8c8da","name":"","property":"payload.inside","propertyType":"msg","rules":[{"t":"gte","v":"22","vt":"str"},{"t":"lte","v":"20","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":2040,"wires":[["9e4fb0593f4cc003"],["f4847decde0f8f0e"]]},{"id":"b4445566cf98afe6","type":"rbe","z":"b9860b4b9de8c8da","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":890,"y":2040,"wires":[["2ea4a8ffc7ad74ad"]]},{"id":"9e4fb0593f4cc003","type":"change","z":"b9860b4b9de8c8da","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":2040,"wires":[["b4445566cf98afe6"]]}]