I'm trying to measure temperature using an PT100 temperature sensor. I've done this using a voltage divider with the sensor and 100 ohms. The problem is that it's reading 100 degrees celsius when it's 21 degrees. When i move the cable connecting the sensor and the board, then the value changes +/- 10 bits. I've put the code and the output below.
My hardwaresetup is a 100 ohm resistor and the PT100 running on the arduino 5V, like showed below. Is it possible to run it without using any additional chips (only using resistors and the arduino). I don't need it to be very precise. +/- 5 degrees is fine.