That latest schematic is not going to work. The mosfet source must be referenced to the same ground as the gate. You still have a diode in the sensor ground.View attachment 211560
Is this setting more accurate to produce a better result than the one where i connect the heater ground to the arduino(image below)
in order to avoid ground noise
and should i connect a flyback diode in the process , of which i don't understand the need ?
View attachment 211484