@suhaila96 Hello I have not seen your question since I reviewed this topics, today.
What do you mean about "setup your circuit"? How did you connected you watermark sensor and to what?
@fdlou147 According to my personal experience, I'd recommend to split up Gateway and Node funktionality and use two seperate mcu's.
Wrt. to the code itself: you only set up a debouncer on one of the pins (finally: Pin 5), as you always redefine the same "flags" over and over again. Perhaps have a look at this imo excellent multi relay/button sketch by korttoma here. This one should be not to hard to adopt to your needs (still, I'd recommend two mcu's).
@lrtsenar
The MySensors Libraries were designed around the nrf24l01 transceivers which have much more built in capability than a simple 433Mhz Tx/Rx pair. You can make a node which contains a nrf and 433 Rx/Tx and it can transfer messages between the MySensors architecture and common 433Mhz devices. If you are only interested in 433Mhz devices with Domoticz, see the RFLink project for more info. I believe it requires a mega to fit their libraries.
@sebdetours said in MDMSPanel "Nextion":
Did you take a standart case that you cut out?
Hi @sebdetours, yes. This is G1910 (Gainta) box. See drawing attached to projet files.