Wanting to monitor condensing boiler flow & Return temps

Ah… I spotted a fault, which will lead to empty values in your emonCMS data:

Line 317:
Sleepy::loseSomeTime(time_between_readings*60*1000);

This will give reports about every 63 seconds, which is bad. If you’re using the EmonCMS Fixed Interval Timeseries feed with a 60 second interval, every so often you get a NULL entry because the last data just landed inside the time slot before it was replaced by the one that will run out before the next data arrives. :exploding_head: (Hard to explain.)

I recommend:

  1. Change line 317 to Sleepy::loseSomeTime(time_between_readings);
  2. Change line 57 to const uint16_t time_between_readings = 57000; // 57 seconds as milliseconds

This should result in one reading being overwritten and lost occasionally – I estimate about once an hour, but you won’t have gaps in the data unless there’s a genuine failure of the message to get through.

I’ve changed the data type from int (16-bit signed) to the more explicit uint16_t (unsigned 16-bit integer) because JeeLib defines the parameter as a WORD which is undefined but unsigned and at least 16 bits. So the original (signed int in the sketch I adapted) was always wrong.

AH ok I was just going to say that I have missing data. I will update and let you know. Also I have connected to a 5v supply and removed the batteries.
thank you
rgds
Mark Webb

See previous email.
I have updated that but I still have problems. I have removed the internal temp/hum sensor and have 2 external probs connected only and battery power.
Screenshot 2024-01-23 at 16.26.17.png
Only 1 external probe reporting and battery volts showing as humidity. When I connect the internal sensor it reports humidity as external temp2 and internal temp as external temp1.
Have I messed up?
Rgds
Mark Webb

I didn’t intend you to remove the internal DHT22, and you didn’t say you would. If you don’t want and don’t need it, I’ll take it out of the sketch.

I can’t see why the voltage turns up in the humidity slot though.

See previous 2
I think my beginers eye says lines 89-95 look wrong. It is actually reporting like those lines show.
Rgds
Mark Webb

I don’t want it out I just took it out to try and work out what was happening.
This is what I get now
Humidity is ext temp 2
Battery is Humidity.
Forgive me I am just trying to understand a bit. Lines 89-95 in sketch? Might explain?

Screenshot 2024-01-23 at 17.01.12.png

Those lines define the order of the variables sent to emonHub. You have changed your definition of Node 19 in emonHub according to the comment near the top – line 40 onwards?

Yes node 19 changed to include those 5 variables and is as the comment.
Ah I see lines 90-94 do show the 5 I thought only 4 didn’t see top line.

If your programmer is connected and you start the serial monitor, what do you see there?

Nothing at all. Even at power up but the programmer is supplying power. Can I stop that by removing the link?

It’s supposed to detect the serial connection and enter debug mode, then print its start-up diagnostics.

For now, comment the existing line 126 and make it `if (true) // if (Serial)

It doesn’t matter if the programmer is supplying power - but it’s not a good idea to do that with batteries fitted.

I don’t think it is compiling due to the Jeelib.h error so we are still running old program???
Still no data

/Users/markwebb/Downloads/emonTH_markstjwebb/emonTH_DHT22_DS18B20/emonTH_DHT22_DS18B20.ino:67:10: fatal error: DHT.h: No such file or directory
#include “DHT.h”
^~~~~~~
compilation terminated.
Multiple libraries were found for “OneWire.h”
Used: /Users/markwebb/Documents/Arduino/libraries/OneWire
Not used: /Users/markwebb/Documents/Arduino/libraries/OneWireNg
Not used: /Users/markwebb/Documents/Arduino/libraries/MAX31850_OneWire
exit status 1

Compilation error: DHT.h: No such file or directory

You didn’t mention that. Yes, you’re still running whatever was in the emonTH.

Look at the Docs section Installing the Arduino IDE – macOS — OpenEnergyMonitor 0.0.1 documentation and check where you need to put the library on your Mac.

DHT-sensor-library-master.zip (3.6 KB)

I’d love to know how this got missed and why nobody has spotted it before.

I have the libraries in the right place. It.s not missing library bits now. It is a list of faults. Sorry in advance but here they are.
I am tempted to delete all libraries and re install them.

/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::defaultAlarmHandler(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::DallasTemperature(OneWire*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::DallasTemperature(OneWire*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getDeviceCount()’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::validAddress(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getAddress(unsigned char*, unsigned char)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::readScratchPad(unsigned char*, unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::isConnected(unsigned char*, unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::isConnected(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::writeScratchPad(unsigned char*, unsigned char const*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::readPowerSupply(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::setResolution(unsigned char*, unsigned char)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::setResolution(unsigned char)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getResolution()’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getResolution(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::begin()’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::setWaitForConversion(bool)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getWaitForConversion()’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::setCheckForConversion(bool)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getCheckForConversion()’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::isConversionAvailable(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::blockTillConversionComplete(unsigned char*, unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::requestTemperatures()’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::requestTemperaturesByAddress(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::requestTemperaturesByIndex(unsigned char)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::calculateTemperature(unsigned char*, unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getTempC(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getTempCByIndex(unsigned char)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getTempFByIndex(unsigned char)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getTempF(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::isParasitePowerMode()’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::setHighAlarmTemp(unsigned char*, char)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::setLowAlarmTemp(unsigned char*, char)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getHighAlarmTemp(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::getLowAlarmTemp(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::resetAlarmSearch()’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::alarmSearch(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::hasAlarm(unsigned char*)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::hasAlarm()’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::processAlarms()’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::setAlarmHandler(void ()(unsigned char))’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::toFahrenheit(float)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::defaultAlarmHandler(unsigned char*)': (.text+0x0): multiple definition of DallasTemperature::toCelsius(float)’
/private/var/folders/gb/ktdv21x109d7fdpdjmhq0g500000gn/T/arduino/sketches/F9C0C7C9E7D266DF81B3C2462520B3C2/libraries/MAX31850_DallasTemp/DallasTemperature 2.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Multiple libraries were found for “OneWire.h”
Used: /Users/markwebb/Documents/Arduino/libraries/OneWire
Not used: /Users/markwebb/Documents/Arduino/libraries/OneWireNg
Not used: /Users/markwebb/Documents/Arduino/libraries/MAX31850_OneWire
exit status 1

Compilation error: exit status 1

Actually, it’s not as bad as it looks - it’s only one file that’s duplicated: DallasTemperature.cpp.o and DallasTemperature 2.cpp.o
All you need to do is delete the “<space>2” version.

OK I sorted the library thing.Compiled ok but when I tried to send I got

Sketch uses 27514 bytes (85%) of program storage space. Maximum is 32256 bytes.
Global variables use 1064 bytes (51%) of dynamic memory, leaving 984 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Failed uploading: uploading error: exit status 1

It’s anybody’s guess what the cause of that is - it could be almost anything. It could be something else is using the USB port, it’s worth checking the programmer is still plugged in to the emonTH, though as you saw serial data before, it’s not likely (but if the emonTH isn’t responding, it would generate that error). Normally for me, it means I’ve forgotten to plug something in. Could it be permissions on the USB port? Look through the Docs again on setting up the Arduino IDE - and the Arduino site might give you some leads.

I am as confused as you are. Probably more so!
I have the emontx3CM sketch that you sent me ages ago. This compiles perfectly.
The EmonTH sketch is in a different directory but in the same place in the tree. It compiled once but will not do so again!

This means it did compile satisfactorily, the problem is the linker-loader avrdude isn’t getting the response it wants - it’s a connection problem. though whether physical or logical is hard to tell. You get the same error message from many possible causes, so it’s not very helpful.
I can get it with the programmer connected to this laptop, but no ATMega on the other end of the programmer.

It wouldn’t be a corroded pin on the FTDI header?