A thermostat is a device used to maintain a constant temperature in various histological equipment such as incubators, water baths, and ovens. It ensures that the temperature remains within a specific range, which is critical for processes like tissue fixation, embedding, and staining.