When showing your configs, please open the item’s page, click the code tab and paste the YAML you find there using code fences. The screen shots are hard to read, can not be searched, can not be copied and edited with corrections, and leave a lot of context out.
With the screen shots you’ve shown we know next to nothing about these Items beyond their names and types.
Use code fences
```
code goes here
```
And definitely post what you’ve tried because that gives us the best insight into your ultimate goals as well as what might be causing you problems.
Now to your question. @stefan.hoehn has posted a good start and the over all approach but I recommend you modify your requirements a little bit.
What if the temp jumps above the setpoint between readings? The heat will remain ON. You can fix that by changing the requirements to greater or equal.
But what if the temperature is bouncing just a little above and a little below the setpoint? The heater will be constantly turning on and off. This is usually inefficient and could be damaging to some hardware.
Instead often what some use in this sort of case is hysteresis. For example, turn OFF the heater when the setpoint is reached or exceeded but don’t turn it ON until the temperature has dropped a certain amount below the setpoint (e.g. 2 degrees). That gives a buffer to prevent the relay from flapping on and off when the temp is bouncing around the setpoint.
And for this, you are in luck as there is a profile that solves exactly this problem without rules. You can link the Channel supplying the temperature reading to a Switch Item and set the Hysteresis profile on the link. That profile will turn the switch ON at your setpoint and off when it’s a little below the setpoint. However, with that approach your setpoint would need to be hard coded into the profile.
Since most heating situations you want to be able to control the setpoint a rule is your best option. But I wanted to bring up the profile for completeness.
So to expand on Stephan’s example using Blockly you’d want something like this:
Obviously use your Items in place of mine. But notice that if the temp is between the setpoint and setpoint - 2, the heater remains ON or OFF. That’s your hysteresis.