Project proposal (ha! it will be funny when you read it)

would a hall effect sensor work?

otherwise one of those IR-slit sensors?