ElectronicCats / CayenneLPP

Library for Arduino compatible with Cayenne Low Power Payload
http://electroniccats.com/
MIT License
106 stars 48 forks source link

Add pH sensor data type to the library #36

Closed Hak4Kidz closed 1 year ago

Hak4Kidz commented 2 years ago

Hi,

Helping a Scout work on his Eagle project to read temp and pH at a public golf courses irrigation ponds. I am trying to figure out how to add the data type to the CayenneLPP Arduino library. This documentation was kinda helpful, but doesn't speak exactly to what I need to do.

Looking for guidance on how to add a data type without breaking the library.

Thanks!

Hak4Kidz commented 2 years ago

Looking inside the CayeneeLPP.h file and I was wondering if this project could use #define LPP_DIGITAL_INPUT to collect the pH sensor reading?

sabas1080 commented 2 years ago

Yes, you can use addAnalogInput or addDgitalInput

Hak4Kidz commented 2 years ago

Thanks! I've already tested that and addAnalogInput is working. But the new issue is there is no trend information for pH. We are looking to compare the pH and temperature over a period of time. Any thoughts on how to get that to work?

Thanks, Heal