Detection of mechanical stimulus