Different Types of Sensors and Their Principles