Question: what is the difference between a customs officer and an immigration officer?
Answer: “Immigration” is about the people traveling from one country to another. It's sometimes called “passport control” or “border control” depending on the airport. “Customs” is about the stuff those people are carrying with them.