
Command all devices on bus to read temperature Serial.println(sensors.getDeviceCount()) Serial.print("Number of Devices found on bus = ") set the resolution to 10 bit (Can be 9 to 12 bits. Initialize the Temperature measurement library Serial.print("Initializing Temperature Control Library Version ") Pass our oneWire reference to Dallas Temperature.ĭeviceAddress tempSensorA = Setup a oneWire instance to communicate with any OneWire devices

Digital pin where both sensors are connected on the Arduino Mega

This should be obtained from the Cayenne Dashboard. This is the code I used to be able to read my sensors… I am eventually trying to hook this up to a Jarduino reef tank controller //#define CAYENNE_DEBUG
