The Control and Operation of Optical Sensors for Environmental Monitoring with Microcontrollers as Data Acquisition and Processing Systems