Design consideration of microcontroller based embedded system for measurement and control of light and temperature