Escuela Superior Polit ́ecnica del Litoral (ESPOL)The implementation of a turkey farm bringswith it severe environmental problems due to the deficientstudy of the physical space where the animals are placed.To counteract this situation and improve the qualityof life in the hatchery, it is necessary to monitor andcontrol the following variables: Temperature, Humidity,Ammonia Emission and Lux. The solution is based on acyber-physical system which is composed of a network ofsensors, controller and actuator. The sensors will provideinformation from the physical environment, the con-troller evaluates these parameters to execute an action tothe actuator. Proportional, Integral and Derivative (PID)control defines the setpoint for temperature while Pulse-Width Modulation (PWM) adjusts the light intensity in aspotlight. The End Device executes these actions and itsparameters will be sent to ThingSpeak which monitorssystem behavior the Internet of Things