project lazy shelf

Perhaps a light sensor in the shelf detecting when it is obscured by a letter? I'm visualising an Arduino in a thin package which can be sat on the shelf so that letters are normally placed on top of it.