Can an iOS app see if an Apple Watch is held upside down, or tilted to the right or left side?

I have an idea for an app where I would use an Apple Watch not as a watch, but as a simple device telling me if a certain plane to which it will be attached is currently upright, upside down, or tilted to the right or left side. Especially the difference between upright and upside down interests me.

I understand the Apple Watch has a gyroscope, but I don't know much about working with them. Would this be possible?

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.