This article describes environmental control of a glasshouse, using a microcomputer and digital control theory. Experiments were performed on a small glasshouse, in which temperature changes in response to variation in heating and cooling actuations and to changing solar radiation conditions, were monitored. The parameters of a dynamic model describing these temperature variations were identified using the measured data sequences. Simulations were performed to predict the variation of the glasshouse temperature in response to controlled actuation signals of fan speed or electrical heating, which could either be continuously varied, or which were constrained to take only on/off values. During the simulations, the model was subjected to the measured solar disturbances to determine the ability of the derived controller to eliminate temperature variations due to outside influences. In all cases, the digital control based on a predictive model produced a more closely controlled temperature in the glasshouse than the simple proportional controllers which had been used previously. It was concluded that the ease with which microcomputers may be used to assist in the design of controllers makes it possible to use an algorithm which produces a robust and readily applied controller.