INTRODUCTION
Setting up a camera can be one of the more exciting activities for your students to complete. It provides immediate feedback that is very gratifying and provides ample opportunity to explore what can be done.
APPLICATION
Here is the basic tutorial for turning on a camera: The default for the image on the pi is for the camera to be enabled.
https://t3alliance.org/rpi-node-red-camera-akil-can-you-build-this/
Once the camera is taking photos, it wasn’t super difficult to incorporate a button into the sequence or any sort of a trigger that is based on an “if-then” scenario. If the sonic sensor is an example of an analog device that collects data and can be set to trigger a photo when a certain threshold is reached.
https://t3alliance.org/rpi-node-red-sonic-sensor-hc-sr04/