Basics of sensors