Scanning Probe Microscopy From The Perspective Of The Sensor