The ideal conditions for the oyster mushrooms growth are at a humidity of 65-75% and 29-31C during incubation, while the growth of stems should be at a humidity of 70-90% 29-32C. This ideal ecosystem is maintained by aeration and manual watering. Still, the results are not optimal in preventing damage to the mycelium during the incubation period, resulting in a decrease in crop yields. Automatic control has not created ideal conditions because air temperature and humidity regulation are only based on fans and sprayers that do not directly affect air conditions. Therefore, we need a method to manipulate the mushroom greenhouse space ecosystem, namely fuzzy logic, the application of fuzzy logic integrated with sensors, actuators, and microcontrollers with the Internet of Things to solve this problem. The results of the installation of fuzzy logic in the mushroom's greenhouse in this system can be seen from the fan's modulation response and the pump's duration. The test results of this control feature can manipulate temperature and humidity. Therefore, the oyster mushroom greenhouse produces an ideal state of 29.8C, the humidity of 68.97% RH, and the production has been proven to be optimal with an average daily harvest of 3.8kg.