It's the fuel gauge... or what's left of it. The lens is probably still installed on the tank and it appears that the white plastic part where the pivot/hinge is, broke off.
The one on the right of your picture is the fuel strainer. It sits inside the filler neck and filters out crud from gasoline as you pour it.