A thermal image sensor works by detecting heat signatures and converting them into an electrical signal. This electrical signal is then processed to create a visible image that represents the temperature variations of the environment.