 Text screen = Text(shield);
 Camera camera = Camera(shield);
 
+void cameraEvent(ShieldEvent* shieldEvent) 
+{
+  if (shieldEvent->resultId < 0) 
+  {
+    screen.printAt(6, "camera error or not present");
+  }
+}
+
 // Callback for startup, reconnection, and when the pushing 'Refresh' button
 void refresh(ShieldEvent* shieldEvent)
 {

  // checkSensors() checks for return events and handles them (calling callbacks). This is VirtualShield's single loop() method.
  // If an email result returns, the callback of emailEvent() is executed where it displays the values to the screen.
  shield.checkSensors();
}		 

  // Call 'refresh' on startup, on reconnection, and when the pushing 'Refresh' button
  shield.setOnRefresh(refresh);
  
  camera.setOnEvent(cameraEvent);
  
  // Begin the shield communication
  shield.begin();
}
