so what solution do you think I need to do?Your input signal is noisy_sine_wave.
so
filtered_sine_wave += (noisy_sine_wave-filtered_sine_wave)/factor
factor sets the frequency response
By the way, FIR filtering takes an awful lot of computation - for whatever number of coefficients you have you have to do that many MAC instructions every cycle.
and how the factor did his role.?