So let’s make an S4A program to fix that!
In this demo, a real fan is switched on by means of a relay when the temperature goes over 19°C. There is also a virtual fan and a virtual temperature sensor, so you can play with both controllers and actuators in the real world and the virtual one.
Watch the video to see it in action:
You can get the code from here: