You're quite within your rights to build automation but you might want to look at adding some code to shut off the output on a switch or second input to switch the output off under your control so if it goes wrong you can quickly turn it off, for example if the pot becomes dislodged.