How do you make a system that can model its own state based on sensory input without giving it subjective self awareness?
The short description: you have an initial idea of the state (an estimate) and you take sensory input (literally from sensors like thermometers, cameras, potentiometers, etc.) and solve constraint equations that both refine the estimate of the system as well as tell the system what to do to achieve some objective. The objective could be something like prevention of an inverted pendulum attached to an electric motor from falling over.