Hi, ive got this sensor: https://www.aliexpress.com/item/10PCS-IR-Infrared-Line-Track-Follower-Sensor-TCRT5000-Obstacle-Avoidanc-For-Arduino-AVR-ARM-PIC-DC/32672744833.html?ws_ab_test=searchweb0_0,searchweb201602_5_10152_10065_10151_10068_10171_10084_10083_10080_10304_10082_10081_10301_10110_10136_10137_519_10111_10060_10112_10155_10113_10114_437_10154_10056_10055_10054_10182_10059_303_100031_10099_10078_10079_10103_10073_10102_10189_10052_10053_10142_10107_142_10050_10051-10050,searchweb201603_2,ppcSwitch_5&btsid=dbbb1e59-866f-4ec4-9b9e-e5aba71630fb&algo_expid=1ae44561-da74-4150-8869-6171c7518ae7-22&algo_pvid=1ae44561-da74-4150-8869-6171c7518ae7 I plug it into arduino (analog), when i get analogRead, it only returns high value (980) and low (10), what's wrong? why it doesn't give other values, when I slowly move sensor above the black stripe
You sure the sensor doesn’t work as intended?
This looks very much like digital HIGH and LOW output, or “there’s an obstacle in range!” vs. “you’re free to go!”.
ok, this sensor gives only digital signal (1 or 0), can I change this sensor to give analog signal?
not likely. It's not designed to do anything you think it could do. It detects white or black, obstacle or no obstacle, at a distance of no more than 8 mm. Get an array of say five or seven of these sensors (just the TCRT5000, not the breakout boards), place them right next to one another, and you can see where your white line is. These guys seem to have what you're really looking for.