The invention relates to a liquid sensor which can certainly judge the
existence of liquid, and a liquid container including the sensor. A
liquid sensor 60 in which a piezoelectric element having a piezoelectric
layer 47 on both surfaces of which electrodes 46 and 49 are formed is
used, and a bottom 43a of a cavity 43 for receiving liquid as a detection
object is vibrated. The sensor 60 includes a vibration cavity forming
base portion 40 in which the cavity 43 having the vibratable bottom 43a
is formed, and a flow path forming base portion 50 laminated on the
vibration cavity forming base portion 40. A liquid supply path 53 for
supplying the liquid as the detection object to the cavity 43 and a
liquid discharge path 54 for discharging the liquid as the detection
object from the cavity 43 are formed in the flow path forming base
portion 50.