Your sending ON in both rules? These could be collapsed to just one…
rule “Indgang Motion Sensor”
when
Item Indgang_motion_sensor_Presence changed
then
Indgang_loft_Toggle.sendCommand(triggeringItem.state.toString)
logInfo("Motion", "{}: {}", triggeringItem.label, triggeringItem.state)
end
And read up on code fences. Some logging will help to troubleshoot too.