The embedded system design implements an intelligent open/close roof system to allow rainwater into a greenhouse.