The circuit was meant to operate for inputs 5V to 24V, hence diode D1 was needed.
If you are using this for 5V only, D1 can be omitted.
The circuit was meant to operate for inputs 5V to 24V, hence diode D1 was needed.
If you are using this for 5V only, D1 can be omitted.