Subminiature triangulation sensors with flat design