Hello,
I have been working on Ender 5 pro where I send G-code via Serial communication also I have a dispenser where I wanna use at the desired coordination, The problem is that I do not know How I can sync these two parts, how I can get feedback from board? for example after the movement is completed the Rpi board should send a signal to the relay module which s connected to the dispenser, if I just put commands related to GPIO after G-code, since it sends codes line by line, the relay module will be turned on synced with G-code. I would be thankful to get your solution.