A farrowing system including a farrowing pen adapted to receive a sow, a feed dispenser adapted to dispense feed to the sow received in the farrowing pen according to a first feeding pattern, at least one heating element providing heat to a portion of the farrowing pen, a birth detection sensor for detecting a birth of a piglet from the sow, and a controller operatively connected to the birth sensor, to the feed dispenser and to the at least one heating element for switching from the first feeding pattern to a second feeding pattern and for activating the at least one heating element upon detection of the birth. There is also provided a method for operating a farrowing system and a method for dispensing feed to a farrowing sow.