The number of piglets dying at birth is reduced by providing a temperature sensor in a farrowing crate at the piglet area thereof on a movable cover so that, when the sow is expected to give birth, the sensor is located in the crate at a location to detect the presence of one or more piglets after birth. On detection by a control unit using the sensor signal of the one or more piglets, the sensor communicates a signal to a pager carried by an operator indicating to the operator that birth of piglets is in progress and activates a heating lamp for the piglets in the pen to attract them away from the area of the sow to reduce crushing. The control unit and the sensor also control the heat output. The cover can slide along the piglet area and can lift to expose the piglet area.