"3 axis accelerometer, gyro" are sensors that are "relative" to the power-up position. They would require you to calibrate at a known reference angle each time you turned it on. This might not be a problem depending on the application. I think the sensor that the OP needs, in their reference to the level, is an "inclinometer". These are "absolute" angle sensors.