With technological and social development in recent decades, people have begun pursuing more comfortable lives that frequently feature household pets that are treated like members of the family. On average, one out of every three households has a pet. This has also led to the creation and growth of many businesses in the pet industry. A few companies have developed a system that allows busy office workers to remotely care for pets at home based on the Internet of Things and an intelligent adjustment function. As owners of two dogs, the authors of this study observed their pets' living habits and recorded environmental conditions that appear suitable for them. These data were then used to develop an automatic control system to care for pets. The observational data on the pets' habits and environment were written in a program in Arduino by using the ESP8266 Wi-Fi module. The module and booster module control is the switch and setting of various household appliances. According to the loop setting of the program, the system does not need to manually switch or adjust the electrical settings of the environment. Instead, the pet's living environment is assessed by using various sensors. The use of Arduino programs helps develop a system that can automatically adjust the environment to one that is most suitable for the pet's comfort.