modified code to send voltage data to the GUI
fixed merge conflict and added forward sample checking for each direction