In Figure 8, A relay circuit is added to the microcontroller to enable it to control the light bulb. All components are inside the box in this prototype test. A custom made PCB can be used to minimize the size of circuitry. The test run was that the light bulb will light up when the light sensor in the smart home prototype detects darkness.