Yes, you can use similar ones.
A sensor is a detection device that can sense the measured information and convert the sensed information into electrical signals or other required forms of information output according to certain rules to meet the needs of the information. Requirements for transmission, processing, storage, display, recording and control.
The characteristics of sensors include: miniaturization, digitization, intelligence, multi-function, systematization and networking. It is the primary link to realize automatic detection and automatic control. The existence and development of sensors give objects senses such as touch, taste, and smell, making objects slowly become alive. It is usually divided into ten categories according to its basic sensing functions: heat sensor, light sensor, gas sensor, force sensor, magnetic sensor, humidity sensor, sound sensor, radiation sensor, color sensor and taste sensor. .