What are logs on Domoticz when you restart your node?
Your log seems correct. I think your problem comes from Domoticz. Have you declared new arduino gateway in Domoticz? If so, can you show us domoticz's log?
Great job! I work on the same project and it looks like the same detector. Can you show us a short tutorial? Or at less the code you used?