I'm planning a complete domotic project for ou house (under construction at the moment).
The goal is to have several sensors (PIR, DHT-22, CO, smoke, thermoresistance, ..) in each room + relays to control lights, warming and a few other things (air extraction, shutters, ...) + DIY alarm system.
I really appreciate NODE RED so far but am struggling using it to both retrieve data from the sensors AND control relays on the same arduino board.
If I do use StandardFirmata on the Arduino, NODE RED receives incorrect values that can't be used (from DHT-22 for example).
If I do use DHT library in the Arduino code and format the output in JSON format, I do retreive it correctly in NODE RED but don't know how to control relays and other devices that need to be controlled by NODE RED through Arduino.
I have 'lots' of sensors to get data from (15x DHT-22, 15x PIR, 15x photoresistance ...), which means that I will probably have to use more than 1 arduino (? maybe a solution to use only 1 ?).
How should I proceed ?