update:
Adapted the old distance sensor sketch to the 2.0 library and upladed it and connected to my PC. Also connected the gateway 2.0 to raspberry (Domoticz).....
Allright it works....I do get distance in my serial monitor and in domoticz.
Now try to upload the basement alarm sketch...See what happens...