Development and implementation of a smart greenhouse