Project with Lora / Sensors

image

When my reed switch is closed i see
image
But always loop the messages does not stop… and the message should be “off” without Hello.

When my reed swich is Open i see “message” : “hello 1”} on loop to…
:face_with_raised_eyebrow:

On arduino IDE serial monitor when opened

when closed

i am very close, but i need help to achieve my goal.