The next issue is to be able to save set values to eeprom. If I put it in the loop the eeprom will be used each cycle which I would like avoid since eeprom chips have a finite life. I am looking for a trigger of some sort so the eeprom mechanics is run only when a value changes from ubidots
I have not tried anything yet. Im looking for ideas. When this was on an arduino data came in and out via usb so when there was data available it got written to eeprom.
I first thought is to read the values to a set of variables and compare old values to new values when they change it would trigger a data dump to eeprom.