A smoke detector is an electronic fire-protection device that automatically senses the presence of smoke as a key indicator of fire and creates a loud sound as a warning. In 3-5 sentences, describe what is happening inside a photoelectric smoke detector as soon as smoke enters it