Inclinometers are used to measure angles of inclination of an object. Angles are measured in reference to gravity. In this project angle is measured by using dual axis SCA100T MEMS sensor.
Digital inclinometer is far more precise than manual with bubble in liquid. Author didn’t provide full working code, but he gives SCA100T inclinometer library to use in new design. As SCA100T connects to microcontroller via SPI interface there shouldn’t be a problem at all. Library files are here.