A density and viscosity sensor 1 for measuring density and viscosity of fluid F, the sensor 1 comprising a resonating element 3, 3A, 3B, 3C, 3D arranged to be immersed in the fluid F, an actuating / detecting element 4A, 4B coupled to the resonating element, and a connector 7 for coupling to the actuating / detecting element 4A, 4B. The sensor 1 further comprises a housing 2 defining a chamber 8A isolated from the fluid F, the housing 2 comprising an area of reduced thickness defining a membrane 9 separating the chamber 8A from the fluid F. The actuating / detecting element 4A, 4B is positioned within the chamber so as to be isolated from the fluid F and mechanically coupled to the membrane 9. The resonating element 3, 3A, 3B, 3C, 3D arranged to be immersed in the fluid F is mechanically coupled to the membrane 9. The membrane 9 has a thickness enabling transfer of mechanical vibration between the actuating / detecting element 4A, 4B and the resonating element 3, 3A, 3B, 3C, 3D.