The homeostat is one of the first devices capable of adapting itself to the environment; it exhibited behaviours such as habituation, reinforcement and learning through its ability to maintain homeostasis in a changing environment. It was built by William Ross Ashby in 1948 at Barnwood House Hospital.