public void RequestState() { //this will trigger firmata to return the digital state of the port Mgr.SetDigitalReportMode(Mgr.GetPortForPin(_sensorPin), true); }