A vacuum cleaner includes a nozzle assembly and a canister assembly connected to the nozzle assembly. The well layer is formed of a nitride semiconductor containing In, and the barrier layer is formed of a nitride semiconductor layer containing As, P or Sb. The spacer presents an opening that defines a sensing region.