IR sensor`s behavior made more realistic