You need to get smartmontools to run smartctl command:
apt install smartmontools
or
compile from source
git clone https://github.com/smartmontools/smartmontools.git
cd smartmontools/smartmontools
./autogen.sh
./configure --with-nvme-devicescan
make
sudo make install
Before downloading and running the script you can check the script hash:

wget -qO- https://diskcheck.co/smart.sh | md5sum | awk '{print $1}'
3d2eb2f3516bc1b3eb2ba1357de9dc29

wget -qO- https://diskcheck.co/smart-test.sh | md5sum | awk '{print $1}'
6bc155992975d2a50046d0ad2cb6b7c4
Before downloading and running the script you can check if script verification was successful:

wget -qO- https://diskcheck.co/smart.sh | [[ "$(md5sum | awk '{print $1}')" = "3d2eb2f3516bc1b3eb2ba1357de9dc29" ]] && echo "Verification of script was successful." || echo "Verification of script failed."

wget -qO- https://diskcheck.co/smart-test.sh | [[ "$(md5sum | awk '{print $1}')" = "6bc155992975d2a50046d0ad2cb6b7c4" ]] && echo "Verification of script was successful." || echo "Verification of script failed."
Downloading and running the script:
wget -qO- https://diskcheck.co/smart.sh | sh
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://diskcheck.co/smart-test.sh | sh
This script will verify if the hash of script smart.sh is correct and only then will run smart.sh (you need to manually download verify-and-run.sh and smart.sh, because each time we update smart.sh the hash will change):
wget -qO- https://diskcheck.co/verify-and-run.sh | sh
Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh
Latest 45 S.M.A.R.T data:
2022-08-20 00:00:03.8059914080 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/30
2022-08-20 00:00:02.4819874570 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3379
2022-08-19 23:00:02.8957206600 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3378
2022-08-19 23:00:02.7677196220 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/29
2022-08-19 22:00:02.0344773580 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3377
2022-08-19 21:00:03.7628887040 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/28
2022-08-19 21:00:02.6708850630 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3376
2022-08-19 20:00:02.8342817690 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/27
2022-08-19 20:00:02.3782790130 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3375
2022-08-19 19:00:02.7307154580 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3374
2022-08-19 18:00:09.9930477210 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/26
2022-08-19 18:00:02.4489779760 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3373
2022-08-19 17:00:03.1737635140 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/25
2022-08-19 17:00:02.9057611080 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3372
2022-08-19 16:00:02.8697669600 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3371
2022-08-19 16:00:02.4457643070 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/24
2022-08-19 15:00:02.7975891460 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3370
2022-08-19 14:00:03.2753160800 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/23
2022-08-19 14:00:02.0313100650 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3369
2022-08-19 13:00:02.5876345700 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/22
2022-08-19 13:00:02.3796333170 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3368
2022-08-19 12:00:02.4025388730 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3367
2022-08-19 11:00:03.0343341180 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/21
2022-08-19 11:00:02.4543307080 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3366
2022-08-19 10:00:02.5718366640 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3365
2022-08-19 09:00:03.8697429480 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/20
2022-08-19 09:00:02.9657391510 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3364
2022-08-19 08:00:02.8943193570 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3363
2022-08-19 08:00:02.6903183150 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/19
2022-08-19 07:00:02.5568038660 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3362
2022-08-19 06:00:03.1667736790 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/18
2022-08-19 06:00:02.0427665210 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3361
2022-08-19 05:00:03.0310687220 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3360
2022-08-19 04:00:03.4495150950 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/17
2022-08-19 04:00:02.4735086470 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3359
2022-08-19 03:00:02.4494289900 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3358
2022-08-19 02:00:02.9573717450 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/16
2022-08-19 02:00:02.8893713440 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3357
2022-08-19 01:00:02.6157447580 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3356
2022-08-19 00:00:03.7001325430 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/15
2022-08-19 00:00:02.4521278210 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3355
2022-08-18 23:00:02.8527522410 855905a95bf8d7b60ed0423c9de55d53c861ec9e2073cbc62c7104176198b770/_dev_sda/14
2022-08-18 23:00:02.7767519030 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3354
2022-08-18 22:00:02.9526164210 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/3353
2022-08-18 21:03:10.3808532410 1449000678bafc6829eadc41480cb7a535d8229096dfba1bbcba300350fa7908/_dev_sdb/1