When addressing an email to your instructor, you should always use their preferred title. Also, you will want to consider an appropriate type of salutation to use. For example, "Good morning/afternoon/ evening, Dr. Johnson," or "Hello Professor Smith," or, simply, "Dr. Thomas." If you are unsure how your instructor would prefer to be addressed, most will let you know during the first day of class. If not, check your syllabus!
Likewise, you need to be mindful of how you conclude your email. Use something professional like, "Thank you for your time/consideration in this matter," or "Sincerely yours," or "Best," and then use your full name to avoid possible confusion with other students the instructor may have with an identical first name.