Adding custom sensor - NDIR CO2 Sensor


#1

I’m new to Cayenne and I’m trying to see if there is a way to add custom sensors that aren’t in the package already. I have this sensor http://sandboxelectronics.com/?product=50000ppm-mh-z16-ndir-co2-sensor-with-i2cuart-5v3-3v-interface-for-arduinoraspeberry-pi-2 and was wondering if I would be able to use it with Cayenne on my RaspPi3? Seems that the I2C bus isn’t available in Cayenne though?

Is there a way to add custom sensors?

I also see the DHT22 is on the RaspPi roadmap but it appears the only way to get a temp/humdiity sensor is through an Arduino.

Best regards,
Chris


#2

Welcome to Cayenne!

It is certainly possible with MQTT http://www.cayenne-mydevices.com/docs/#bring-your-own-thing-api This API was just added a few days ago so should should start to see examples posted soon.


#3

Question about that…but first here is what I’m currently doing.

rasppi = MCP23017 (relay and transistor I/O control)
MCP3008 (analog sensor array)
CO2 Sensor

ESP8266 = DHT22 sensor

If I was to go the MQTT route would that require a third microcontroller or could I use the rasppi and have another instance of a sensor on the same device?


#4

you can use dht22 with esp8266


#5

have a look at this project ESP8266-12E, Arduino, DHT22, BMP180, Cayenne