Removed +24V source and added a level shifter to allow a feedback to the uC.