I've tried to follow this thread, but I seem to be really missing the overall idea. I want to make a Kvasar or some type of mask that can function similar to the NovaDreamer's REM detection.

Can someone point me to the posts in here that will get me to that point? I have a fairly decent understanding of basic electronics, so I just need some help figuring where to go next. Thanks.