Hi everyone, I have just started playing around with Arduino recently. I want to hook up an industrial temperature sensor that I have lying around the house to the Mega and display temperature readings to a Nextion display. The sensor takes 25V dc and output a 0-5V to the Mega’s analog pin. Everything seems to work fine when I have the sensor hookup to the board and runs the code. However, as soon as I wire up the Nextion Display, the temperature would fluctuate and would be off by several degrees Celcius. As I am hoping to hook up several sensors and relays, any help on how to fix this would be great.
p.s I am supplying power to the Mega via usb cable.
analogRead() would produce the following readings:
When I plug in the Nextion Display