Hydraulic sensor