Use conditional function to kwow if a door its open or close like this video
- 
					
					
					
					
 Someone can help me I need to do a conditional function with the MPU6886 sensor to send a message if a door its open or close like the video below.Its a Schoolar proyect please help 
 https://www.youtube.com/watch?v=o27hAUgWv7I&feature=emb_title