void ProgramStarted() { w = new Wifi(wifi_RS21); CameraClass c = new CameraClass(camera, motion_Sensor, w); Devices d = new Devices(button, w); Gas g = new Gas(gasSense, w); Debug.Print("Program Started"); button.ButtonPressed += button_ButtonPressed; }