The infrared sensor (IR) is an electric device that detects the IR radiation in the surrounding area. The IR was discovered by the astronomer William Herschel by mistake when he was measuring the temperature of colors of light in 1800. He noticed the temperature was highest beyond the red light. From there, IR technology advanced,…