Design and construction of an automated apparatus for measurement of environmental parameters