A Hartmann Spectrocomparator device to measure accurate displacement of the star by measuring the relative…