The microbit in a hydroponic smart garden functions as a brain that reads data from the water level sensor in the nutrient tank, then processes it to activate a relay that will automatically turn on the pump when the water recedes, so that the system can flow the nutrient solution to the plants without the need for human intervention.