Man sentenced for dealing heroin that led to overdose death