Very difficult to provide a correct and precise algorithm as previously stated, to many real world variables, unhatched to hatch parameters to solve. Perhaps an ultrasonic detector to alert of hatchlings so they can be moved to a monitored area to avoid ammoniac poisoning and monitor the ammonia there, (thus not altering the ideal conditions of the hatchery) reducing the problem in this way might be the simplest way.
Hope it of some help
Bookmarks