We demonstrate the versatility of a silicon nitride grated waveguide optical cavity as compact integrated optical sensors for (bulk) concentration detection, label-free protein sensing, and – with an integrated cantilever suspended above it – gas sensing.