Dear Sophie: I didn’t win the H-1B lottery. What are my next steps?

My employer entered me in the H-1B lottery, but I wasn’t selected. I heard that my degree now qualifies as a STEM field, making me eligible to continue working under OPT. How can I stay in the U.S.?