Crimes related to illegal cameras are steadily increasing and causing social problems. Owing to the development of camera technology, the miniaturization and high performance of illegal cameras have caused anxiety among many people. This study is for detecting hidden cameras effectively such that they could not be easily detected by human eyes. An image sensor-based module with 940 nm wavelength infrared detection technology was developed, and an image processing algorithm was developed to selectively detect illegal cameras. Based on the Android smartphone environment, image processing technology was applied to an image acquired from an infrared camera, and a detection sensor module that is less sensitive to ambient brightness noise was studied. Experiments and optimization studies were conducted according to the Gaussian blur size, adaptive threshold size, and detection distance. The performance of the infrared image-based illegal camera detection sensor module was excellent. This is expected to contribute to the prevention of crimes related to illegal cameras.