Method and device for sensing electric field