A composition for detecting biofilm on an eyelid margin includes a dye thatbinds tothe biofilm and a solution that is biocompatible with the eye. A method fordetecting biofilmon an eyelid margin of an eye includes applying a solution to the eye or theeyelid margin sothat a dye in the solution binds to the biofilm. A handheld camera (10) fordetecting biofilmon an eyelid margin of an eye includes a housing (12), an image sensor (46),and a lens (44)including a focal length determined by a distance between the lens (44) andthe eyelid margin.A method for detecting biofilm on an eyelid margin includes capturing an imageof the eyelidmargin using a handheld camera (10) and determining if the biofilm is presenton the eyelidmargin. A system for detecting biofilm on an eyelid margin of an eye includesa compositionand a handheld camera (10).