Can a presure sensor work under resin?
Depends entirely on the resin and the sensor. 


Some resins are hard, rigid materials when cured and nothing inside
them would respond to outside pressure. Some are quite flexible or
"rubbery" and would transmit pressure, though the response of the
sensor might well be quite different than a "bare" pressure sensor.
Some sensors have the sensing element physically shielded in various
ways that might not be very compatible with working when
encapsulated.