I am trying to log temperature using MAX31865 module and Raspberry Pi. I have written following python code:
import board
import busio
from digitalio import DigitalInOut, Direction
import adafruit_max31865
spi = busio.SPI(board.SCLK(), MOSI=board.MOSI, MISO=board.MISO)
cs = DigitalInOut(board.D11) # Chip select of the MAX31865 board.
rtd = adafruit_max31865.MAX31865(spi, cs)
Above code is giving rtd.temperature value equal to -242.02 What could be the problem?
I have checked the all pin connections. RTD sensor is also working fine.