Upated arduino sketch to allow for querying individual subdevices.