added code to read the hall effect sensor and report back its value