Actually, you have adjusted it very well, because you use relays so the energy output is the result, but if you use PWM to switch the energy, the resolution and controllability you can adjust will be better! However, if you want to do this on the premise that the current equipment does not change, you can set the trigger relay threshold range. If the expected value and the measured value exceed a certain range of threshold values, the relay will be activated, otherwise it will be closed. Furthermore, if you still think it is not good enough, you can also use a uniform method to capture the average value of the measured value for calculation, which will be even better!