modifications for insta-discoverable and toggle sensor state