DIY hot wire cutter electronics: needs some advice

Wouldn't this be easier?
analogWrite(PWM_PIN, analogRead(A0) / 4);

Why print sensorValue 10 times a second?
The MOSFET source pin MUST be connected to 15V ground along with Arduino GND.
You should put a 10k pulldown resistor from Mosfet gate to GND so gate is not floating while Arduino is starting up.

1 Like