I am using a raspberry pi 3 with Cayenne. I have two temperature DS18B20 sensors connected to GPIO4 on the pi. The sensors picked up automatically on Cayenne. I also have a relay connected to another GPIO which turns off and on a light. What I would like to do is set a trigger as follows:
If temperature sensor 1 is higher than temperature sensor 2 then turn the light on, and if the other way around, the light must be off.
Is this possible and if so, how do I set the trigger. For now I can only set the temperature trigger on a slide at a certain temperature for both sensors and can not do a comparison between them for the trigger.