Sensor suitable for wide range of applications