The method for dirty camera detection including: detecting a first predetermined state change event; sampling a set of cavity measurements; optionally determining a set of features of the set of cavity measurements; determining a class label based on the cavity measurements; optionally verifying the classification; and facilitating use of the appliance based on the classification.