This assembly code should be trivial. I am just a little concerned that 2 people have asked basically the same exact question and don't seem to be able to give an explanation that doesn't sound like a school project. If this is NOT for school, I know that I can write any of that assembly code to show you how to do it, and I am sure that there are many other engineers in this forum that can explain exactly what type of sensors to use. However, it would be VERY inappropriate for industry professionals to do a school project!!!
If I have misjudged the scope of this project, I apologize and will do everything in my power to help.