A composition for detecting biofilm on an eyelid margin includes a dye that binds to the biofilm and a solution that is biocompatible with the eye. A method for detecting biofilm on an eyelid margin of an eye includes applying a solution to the eye or the eyelid margin so that a dye in the solution binds to the biofilm. A handheld camera for detecting biofilm on an eyelid margin of an eye includes a housing, an image sensor, and a lens including a focal length determined by a distance between the lens and the eyelid margin. A method for detecting biofilm on an eyelid margin includes capturing an image of the eyelid margin using a handheld camera and determining if the biofilm is present on the eyelid margin. A system for detecting biofilm on an eyelid margin of an eye includes a composition and a handheld camera.