added code to use the modified firmware and get relay value

modified the library to use the new read relay functionality added to custom firmware