Farming plays an important role in today's world and it requires proper environmental and diet care. A smart system is needed to operate and monitor animal farm remotely. This system should provide feed and water as required, exhaust the excess of biogas which is produced by the animals' waste, and detect fire in the farm. Moreover, this intelligent system should also do surveillance of the entire farm. This kind of intelligent system can be designed cost effectively by using microcontrollers, water level sensor, ultrasonic sensor, gas sensor, temperature, humidity sensor, and an IP Camera along with Internet or Intranet connectivity with the devices i.e. smart phones or computer. In this paper, we develop an IoT based smart animal farm with above mentioned features.