how to fix this probelm?
By the error compiling message, it seems that your IDE setting is for an ESP board. The code provided in the IoT Pet Feeder project, is for the Arduino Uno board, that communicated with the esp8266 as its wifi module.
Switch your setting to the Arduino Uno board in IDE.
it can be compiled now , thanks