added better handling of firmware value
check and prune invalid data samples