GO:0004031:   aldehyde oxidase activity
Catalysis of the reaction: an aldehyde + H2O + O2 = a carboxylic acid + hydrogen peroxide.