Putting two sketeches toghether in arduino z-uno

Hello

I need have in my z-uno, one dht22 sensor and 4 switches. I found the sketches in internet, but when I try to put them togheter, it doesnt work. Can anyone help me if I am doing something wrong? The final sketch compile without errors but then it apears just the temperature and humidity values in zwave. In the sketch I have just one switch for now, but I need 4. Anexed is the sketch.

Thanks in advance

Carlos

dhteswitchver.ino (1.97 KB)

Are you reading switches with the Arduino that you need to report their status to the controller or is the Arduino supposed to control relays per instructions from the controller?

n.b. Everything I know about Zuno I learned in the last five minutes, so clearly, I'm no expert.

Thanks for answer. I need control the relays and read their status.

Hello. I need control the relays and have also the satus of them in the z-wave controller. Thanks . Carlos

merelhe:
Thanks for answer. I need control the relays and read their status.

What's that got to do with the OP here's question?