Little bits and pieces to remember when writing QGIS calculations
Grab a value from a raster. Usualy this will be at at apoint. HINT: this uses the raster_value function in the QGIS expression builder. The function just takes the name of the raster layer, the band, and a point geometry.
raster_value("raster layer name", 1, $geometry)