/// <summary>
 /// toggled the fans when the switchts is switch
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void FanToggle_Toggled(object sender, ToggledEventArgs e)
 {
     if (FanToggle.IsToggled == false)
     {
         rest.DigitalGet(2, 0);
     }
     else
     {
         rest.DigitalGet(2, 1);
     }
 }
 private void Watering_Clicked(object sender, EventArgs e)
 {
     rest.DigitalGet(5, 1);
     TimeSpan.FromMilliseconds(1000);
     rest.DigitalGet(5, 0);
 }