Great episode.

But what happens if not all chickens are inside when the door shuts?  Or, worse, the door shuts while a chook is standing on the threshold?

Maybe a keypad on the outside of the door which they could peck for entry?