RPi zero w with LM393 / "flying fish" sensor

Your temperature sensor problem could be due to this: