Detecting, measuring or recording by applying mechanical forces or stimuli