Using Bitcoin ATM's, how does selling work?
Atm will generate a bitcoin deposit address 
Client scan it using smartphone and send bitcoin to that address 
Atm will wait for confirmation and emit fiat money from dispenser 


Things to consider:
KYC level for bitcoin amounts 
Generation of addresses 
Confirmation number
ATM connected full node 
Rate exchange 
And more , but I believe this is the basic.